using System.IO;

namespace Bitcoin.Store
{
    public interface IWalletStore
    {
        /// <summary>
        ///     Returns a wallet deserialized from the given file.
        /// </summary>
        /// <param name="name"></param>
        /// <exception cref="IOException" />
        Wallet Load(string name);

        /// <summary>
        ///     Uses Java serialization to save the wallet to the given file.
        /// </summary>
        /// <exception cref="IOException" />
        void Save(string name, Wallet wallet);
    }
}